<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<div>
    <b><spring:message code="portal.webapp.label.reader"/></b>
</div>
<ul>
    <li><b><spring:message code="portal.webapp.label.username"/></b> ${reader.username}</li>
    <li><b><spring:message code="portal.webapp.label.firstName"/></b> ${reader.firstName}</li>
    <li><b><spring:message code="portal.webapp.label.lastName"/></b> ${reader.lastName}</li>
    <li><b><spring:message code="portal.webapp.label.group"/></b> ${reader.group.name}</li>
    <li><b><spring:message code="portal.webapp.label.readerComments"/></b>
        <ol>
            <c:forEach var="comment" items="${reader.comments}">
                <li>
                    <a href="/book/${comment.book.id}">${comment.title}</a>
                </li>
            </c:forEach>
        </ol>
    </li>
</ul>